<?php
/*
    require_once('../include/DBHelperi_applepie.class.php');


    $db = new DBHelperi_applepie('DEV', true);

    for ($i=0; $i<3; $i++)
    {
        var_dump($db);

        $s = $db->realEscapeString("x$i@");

        $sql = "insert into test (content) values ('$s')";
        $res = $db->query($sql);

        $db->_dbw = null;

        $sql = "select * from test";
        $res = $db->query($sql);
        while ($row = $res->fetch_array()) echo $row[0].' '.$row[1]."\n";

        echo "=========\n";

    }
*/
/*
error_reporting(E_ALL);
$name = '_base';
$prefix = 'Hw_Model_';

$parts = explode('_', $name);
$tmp = array_map('ucfirst', $parts);
$shortName = implode('_', $tmp);
$className = $prefix . $shortName;
var_dump($className);
*/

$data = array('a' => '111', 'b' => '222', 'abcdefg', 'c' => 333);
foreach ($data as $key => $val) {
	var_dump("{$key} = {$val}");
	if (is_int($key)) {
		echo $key . ' is int';
		echo '<br />';
	}
	echo '<hr />';
}
